// mycomponent/cButton/cButton.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    size: {
      type: String,
      value: 'small'
    },
    block: {
      type: Boolean || String,
      value: false
    },
    disabled: {
      type: Boolean || String,
      value: false
    },
    icon: {
      type: String,
      value: ''
    },
    openType: {
      type: String,
      value: ''
    },
    loading: {
      type: Boolean || String,
      value: false
    },
    loadingText: {
      type: String,
      value: ''
    }
  },
  options: {
    styleIsolation: 'shared',
  },
  /**
   * 组件的初始数据
   */
  data: {
    btn_color: 'linear-gradient(to left, #FDC51F, #FDE91E)'
  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
})